#!/usr/bin/env python3
# encoding: utf-8
"""
@author: kevin
@contact: evil365@gmail.com
@project : flask
@file: errorCode.py
@time: 2020/8/5 11:20
@license: (C) Copyright 2019-2025, Corporation Limited.
@desc:
"""
from lin.exception import APIException


class ClientNotFound(APIException):
    code = 404
    msg = '没有该用户'
    error_code = 9001


class ClientAllExist(APIException):
    code = 401
    msg = '用户已经存在'
    error_code = 9002


class CardNotFound(APIException):
    code = 404
    msg = '没有找到该用户卡信息'
    error_code = 9003


class CardAllExist(APIException):
    code = 401
    msg = '该卡信息已存在'
    error_code = 9004


class PosionNotFound(APIException):
    code = 404
    msg = '没有该用户的仓位信息'
    error_code = 9005


class PosionAllFound(APIException):
    code = 401
    msg = '该用户的仓位信息已存在'
    error_code = 9006


class RepayNotFound(APIException):
    code = 404
    msg = '没有该用户的还款信息'
    error_code = 9007


class RepayAllFound(APIException):
    code = 401
    msg = '该用户的该笔还款信息已存在'
    error_code = 9007